package com.cxlin.cwanandroid.ui.main

import android.view.Menu
import androidx.fragment.app.Fragment
import com.cxlin.base.bottomtab.BottomTabActivity
import com.cxlin.base.bottomtab.MenuBean
import com.cxlin.cwanandroid.R
import com.cxlin.cwanandroid.ui.blog.BlogTabFragment
import com.cxlin.cwanandroid.ui.home.fragment.HomeTabFragment
import com.cxlin.cwanandroid.ui.me.MeFragment
import com.cxlin.cwanandroid.ui.project.ProjectTabFragment
import com.cxlin.cwanandroid.ui.search.SearchRecommendFragment

/**
 *
 * @Author: chenxunlin
 * @Date: 2024/4/25 12:03
 */
class MainTabActivity : BottomTabActivity() {

    override fun getMenus(): List<MenuBean> {
        return listOf(
            MenuBean(Menu.NONE, 0, Menu.NONE, getString(R.string.home),R.drawable.ic_home_black_24dp),
            MenuBean(Menu.NONE, 1, Menu.NONE, getString(R.string.blog),R.drawable.ic_blog),
            MenuBean(Menu.NONE, 2, Menu.NONE, getString(R.string.search),R.drawable.search),
            MenuBean(Menu.NONE, 3, Menu.NONE, getString(R.string.project_type),R.drawable.ic_dashboard_black_24dp),
            MenuBean(Menu.NONE, 4, Menu.NONE, getString(R.string.me),R.drawable.ic_profile),
        )
    }

    override fun getFragments(): List<Fragment> {
        return listOf(
            HomeTabFragment(),
            BlogTabFragment(),
            SearchRecommendFragment(),
            ProjectTabFragment(),
            MeFragment(),
        )
    }

    override fun observeStateAndEvent() {
    }

}